feat(cmd): add source and image subcommands to scan#1519
Merged
hogo6002 merged 21 commits intogoogle:mainfrom Jan 24, 2025
Merged
feat(cmd): add source and image subcommands to scan#1519hogo6002 merged 21 commits intogoogle:mainfrom
source and image subcommands to scan#1519hogo6002 merged 21 commits intogoogle:mainfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1519 +/- ##
==========================================
- Coverage 69.08% 68.96% -0.13%
==========================================
Files 197 200 +3
Lines 18864 18959 +95
==========================================
+ Hits 13033 13075 +42
- Misses 5129 5164 +35
- Partials 702 720 +18 ☔ View full report in Codecov by Sentry. |
oliverchang
reviewed
Jan 22, 2025
Collaborator
|
Let's update the |
oliverchang
reviewed
Jan 23, 2025
oliverchang
approved these changes
Jan 23, 2025
project and docker subcommands to scansource and image subcommands to scan
another-rex
reviewed
Jan 24, 2025
Collaborator
another-rex
left a comment
There was a problem hiding this comment.
Just some minor comments, otherwise this looks good!
another-rex
approved these changes
Jan 24, 2025
hogo6002
added a commit
that referenced
this pull request
Feb 26, 2025
#1519 added a global variable for shared flags has caused issues when using generic flags. For tests running concurrently, the shared "allowlist" variable is sometimes overwritten, leading to flaky license tests. Thanks @michaelkedar for pointing out!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change does not break any existing behaviour.
sourceandimagesubcommands forscan.sourceas the default subcommand if none is provided.experimental-oci-imageflag and its tests.For project scanning, users can use the following commands:
osv-scanner <file_name>osv-scanner scan <file_name>osv-scanner scan source <file_name>For docker scanning, users can use the following commands:
osv-scanner scan image <docker_image>osv-scanner scan image --archive <docker_image.tar>Help command: